<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:import url="inc/header.jsp" />




<h1>JARINA</h1>


<c:import url="inc/formSearchJavaClass.jsp" />

<br/>
<a href="jarinaservlet/list/archive/0.html">seznam archivu</a><br/>
<br/>

<br/>
<a href="csvloader/first.html">nahraj archivy nebo javaclassy na server</a><br/>
<br/>

<h2>1.7.2011</h2>
Konecne funguje loadovani Archivu s malyma vyhradama [nesmyslne escapovani cesty]<br/>
Neda se to zatim moc obejit. Kdyz do db vlozim jen fileName, nebude si pamatovat pri vkladani, kde presne je.
Kdyz tam vlozim cestu jako ted escapuje to debilne.
Koho zajima cesta k souboru? to radeji binarni soubor naprimo...


<h2>stara exsepsna:::</h2>
<pre>
Hibernate: insert into JavaClass (archive_id, fullName) values (?, ?)
Hibernate: insert into JavaClass (archive_id, fullName) values (?, ?)
log4j:WARN No appenders could be found for logger (org.hibernate.util.JDBCExceptionReporter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" org.hibernate.exception.JDBCConnectionException: Cannot open connection
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:97)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)
	rk.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

	... 37 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
	at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2137)
	... 53 more
Caused by: java.net.SocketException: No buffer space available (maximum connections reached?): connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:529)
	at java.net.Socket.connect(Socket.java:478)
	at java.net.Socket.<init>(Socket.java:375)
	at java.net.Socket.<init>(Socket.java:218)
	at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:253)
	at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:292)
	... 54 more
	</pre>

<div>
    <b>datum: 28/06/2011</b>
</div>

No posral bych se z toho v kine!! Zkurvenej spring, posrany transakce! Kdyz jsem to delal v kodu, zadnej problem. Jakmile deklarativne=pruser.<br/>
http://mvnrepository.com/artifact/hibernate/hibernate  neobsahuje asi posledni verze artifactu, kde je asi najdu???!!!<br/>
@Autowired problem s CGLIB:  Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError: Implementing class<br/>
problem s transakcemi: neustale neuzaviral transakce!! presto, ze jsem mel @Transactional, vsechny maven deps, hibernati txManager...vse spravne<br/>
nakonec to byl problem v tom, ze jsem znevimproc instancioval dao 2x, problemy se sessionFactory [xml / code],
problem session [currentSession / hibernate properties: hibernate.transaction.factory_class, current_session_context_class]<br/>
<br/>
<br/>



<div>
    <b>datum: 23/06/2011</b>
</div>

Lazyinit hibernate vyresen transakcemi a nezaviranim sessiony.<br/>
Zbyva vyresit numberFormatException u dependentArchives.size<br/>
<br/>



<div>
    <b>datum: 06/2011</b>
</div>

SVG odkladam, protoze appengine toto nepodporuje.<br/>
<br/>

Lazyinit exception getContainedClasses<br/>
<br/>
modul DB:<br/>
<ul>
    <li>predelat do transakci, nejlepe i se springem....spring tx manager</li>
    <li>pridelat moznost prohlizeni zdrojoveho kodu</li>
</ul>


modul WEB:
<ul>
    <li>dodelat vyhledavani</li>
    <li>[- alespon normalni design]</li>
</ul>


APPENGINE:
<ul>
    <li>udelat CSV loader dat do BigTable</li>
    <li>deployovat aplikaci na appengine</li>
</ul>


<hr/>


<div>
    <b>datum: cca 03/2011</b>
</div>

Overeni funkcnosti SVG loadovani...Fake data a hruby nastrel designu.<br/>

Vyhody:
<ul>
    <li>SVG design je mocnejsi nez HTML: skonene pismo, easy-blur, transparency, layers,...</li>
    <li>velka rychlost designovani bez zbytecnych CSS detailu</li>
    <li>moznost hyperlinku ekvivalentni klikacim mapam</li>
</ul>
<br/>
Doresit:
<ul>
    <li>hyperlinky ze SVG</li>
    <li>poradnej design</li>
    <li>dodatecna pom-data: name, packaging</li>
    <li>rekurzivni zavislosti, tak jak jsou odkazovany v pomu</li>
    <li>embedded/object/iframe SVG tak, aby fungovalo i ve firefoxu:
        problem je, ze v mem pripade nemuzu pouzit standardni src=''
    </li>
</ul>

<hr/>

<c:import url="inc/footer.jsp" />